package com.tianzeculture.stagebao.activity.message;

import android.widget.ListView;

import com.tianzeculture.stagebao.R;
import com.tianzeculture.stagebao.activity.message.adapter.MessageAdapter;
import com.tianzeculture.stagebao.activity.message.adapter.Tongzhi;
import com.tianzeculture.stagebao.base.BaseActivity;
import com.tianzeculture.stagebao.net.HomeRestUsage;
import com.tianzeculture.stagebao.network.Request;
import com.tianzeculture.stagebao.network.enity.MSG;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/7/11 0011.
 * 系统消息
 */

public class SystemMessageActivity extends BaseActivity {

    @BindView(R.id.lvMessage)
    ListView lvMessage;
    MessageAdapter adapter;

    @Request
    HomeRestUsage homeRestUsage = null;
    private int systemNews = 101;

    @Override
    public void initUI() {
        super.initUI();


        homeRestUsage.toSystemNews(systemNews, 0, 10);

//        adapter = new MessageAdapter(this, tongzhis);
//        lvMessage.setAdapter(adapter);
    }


    @Override
    public void refreshUI(int taskId, MSG msg) {
        super.refreshUI(taskId, msg);
        if (taskId == systemNews) {

        }
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_system_message;
    }
}
